package negModel;

public abstract class PartePerformance extends Parte{

	private int performance;
	
	public void setPerformance(int modif) {
		this.performance = modif;
	}
	public int getPerformance() {
		return performance;
	}
	
	public void agregarMejora(Vehiculo v) {
		v.incrementarPerformance(this.getPerformance());
		v.incrementarVelMaxima(this.aportevmax());
	}
	
	public void sacarMejora(Vehiculo v){
		v.decrementarPerformance(this.getPerformance());
		v.decrementarVelMaxima(this.aportevmax());
	}
}
